from django.conf.urls.defaults import patterns
from django.contrib.auth import logout
from django.shortcuts import render_to_response

def logout_view(request):
    logout(request)
    return render_to_response("msg.html", {"msg": "yes"})

urlpatterns = patterns('',
    (r'^msg/$', 'testlogin.views.msg'),
    (r'^logout/$', 'testlogin.urls.logout_view'),
)
